In particular, I want -Werror=format=2 to catch format string bugs.
changequote(,)dnl
if test "x$GCC" = "xyes"; then
- WARN_CFLAGS="-Wall -Werror=missing-prototypes"
+ WARN_CFLAGS="-Wall -Wstrict-prototypes -Werror=missing-prototypes \
+ -Werror=implicit-function-declaration \
+ -Werror=pointer-arith -Werror=init-self -Werror=format=2 \
+ -Werror=format-security \
+ -Werror=missing-include-dirs -Werror=aggregate-return \
+ -Werror=declaration-after-statement"
fi
changequote([,])dnl
AC_SUBST(WARN_CFLAGS)